<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        console.info("同学，恭喜您获得了一个奖励！");

        let userName = prompt('Who is there',);
        if (userName=="Admin"){
             let passWord = prompt('Enter your passWord',);
             if (passWord == "TheMaster") {
                 alert("ok .welcome");
             }else if (passWord == null){
                 alert("Canceled");
             } else {
                 alert("passWord wrong!")
             }

        } else if (userName == null){
                 alert("Canceled");
        } else {
                 alert("I don\'t know you!")
        }  
    </script>
</body>
</html>